import { request } from '@/axios/index.js'

// 获取电子书列表
export const getEbookList = (data) => {
  return request.get({
    url: '/ebook/list',
    params: data
  })
}

// 更新或保存电子书
export const saveEbook = (data) => {
  return request.post({
    url: '/ebook/save',
    data: data
  })
}

// 删除电子书
export const deleteEbook = (id) => {
  return request.delete({
    url: '/ebook/delete/' + id
  })
}
